/*
 * EventTarget.h
 *
 *  Created on: Apr 15, 2009
 *      Author: wrice
 */

#ifndef EVENTTARGET_H_
#define EVENTTARGET_H_
#include "DOMEvent.h"
namespace DOMEvent {

class EventTarget {
public:
	virtual void addEventListener(DOMString type, EventListener * listener, bool useCapture) = 0;
	virtual void removeEventListener(DOMString type, EventListener * listener, bool useCapture) = 0;
	virtual bool dispatchEvent(Event * evt) throw(EventExceptionPtr) = 0;

public: virtual ~EventTarget() {}
};

}

#endif /* EVENTTARGET_H_ */
